package com.example.test_witns.pojo;

public class Message{
    private boolean isSend;

    private String sender;
    private String text;
    private String timestamp;

    private String senderNickname;
    private byte[] avatarBytes;

    public Message(byte[] avatarBytes, String senderNickname, String sender, String text, String timestamp, boolean isSend) {
        this.sender = sender;
        this.text = text;
        this.timestamp = timestamp;
        this.isSend = isSend;
        this.senderNickname = senderNickname;
        this.avatarBytes = avatarBytes;
    }

    public byte[] getAvatarBytes() {
        return avatarBytes;
    }

    public void setAvatarBytes(byte[] avatarBytes) {
        this.avatarBytes = avatarBytes;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public boolean isSend() {
        return isSend;
    }

    public void setSend(boolean send) {
        isSend = send;
    }

    public String getSenderNickname() {
        return senderNickname;
    }

    public void setSenderNickname(String senderNickname) {
        this.senderNickname = senderNickname;
    }
}
